home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / comms / netsoftware / launchtcp.lha / LaunchTCP / startnet < prev   
AmigaDOS Script File  |  1994-03-10  |  788b  |  27 lines

  1. .key ip-number/A
  2. .bra {
  3. .ket }
  4. run AmiTCP:AmiTCP
  5. dh0:Rexxc/WaitForPort AMITCP
  6. c:Wait 2 secs
  7. ; configure loop-back device
  8. AmiTCP:bin/ifconfig lo/0 localhost
  9. ; Configure Devs:Networks/rhslip.device unit 0
  10. AmiTCP:bin/ifconfig Devs:Networks/rhcslip.device/0 130.18.80.{ip-number} 130.18.80.14 netmask 255.255.255.0
  11. ; Add route to this host
  12. AmiTCP:bin/route add danimal1.msstate.edu localhost
  13. amitcp:bin/route add ra.msstate.edu 130.18.80.10
  14. amitcp:bin/route add isis.msstate.edu 130.18.80.11
  15. ; add route to the default gateway
  16. amitcp:bin/route add default 130.18.80.10
  17.  
  18. c:Assign TCP: Exists > NIL:
  19. IF Warn
  20.   c:Mount TCP: from AmiTCP:devs/Inet-Mountlist
  21. EndIf
  22. ; Start the internet `super server'
  23. run AmiTCP:bin/inetd
  24. c:wait 2 secs
  25. amiTCP:bin/online rhcslip.device 0
  26. run AmiTCP:bin/smtpd >NIL:
  27.